from gausers.models import *
from django.contrib import admin

class GauserAdmin(admin.ModelAdmin):

  list_display = ('email',)
  fieldsets = [
    (None,                      {'fields': [('firstname', 'lastname'), 'email']}),
    ('Additional Information',          {'fields': ['birthday', 'gender', 'currentzip', 'is_public']})
  ]

class GauseraddedeventAdmin(admin.ModelAdmin): 
  list_display = ('gauser', 'gaevent',)

class GauserfriendAdmin(admin.ModelAdmin):  
  list_display = ('gauser', )

class GauseraddedbusinessAdmin(admin.ModelAdmin):
  list_display = ('gauser', 'gabusiness' )

class GauserzipAdmin(admin.ModelAdmin):
  list_display = ('gauser', 'zip')

class GauserfriendAdmin(admin.ModelAdmin):
  list_display = ('gauser', 'friend')

admin.site.register(Gauserfriend, GauserfriendAdmin)
admin.site.register(Gauserzip, GauserzipAdmin)
admin.site.register(Gauseraddedevent, GauseraddedeventAdmin)
admin.site.register(Gauseraddedbusiness, GauseraddedbusinessAdmin)
admin.site.register(Gauser, GauserAdmin)
